import * as React from 'react'
import './style.less'
import richer from '../../pages/Index'

interface Props {
  // @ts-ignore
    rich: richer
  }

export default class Richer extends React.Component<Props> 
{
  render() {
    return (
      <div className="people">
        <a href="#">
              <div className="img">
                <img style={{borderRadius: '50%',width: '200px',height: '200px'}} src={`http://127.168.1.1:3000${this.props.rich.avatar}`} />
              </div>
              <div className="name">
                {this.props.rich.niceName}
              </div>
          </a>
      </div>
    )
  }
}
